<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<%@ page import="openaccessagrotagtagger.*,java.net.*" %>




<% session.removeAttribute("FILE_UPLOAD_STATS"); %>
<% session.removeAttribute("agrovoc"); %>
<% session.setAttribute("agrotag", "agrotag");%>


<html>
<head>
<title>Agrotag Version-II</title>
</head>
<body>
<a href="javascript:history.go(-1)"
onmouseover="self.status=document.referrer;return true">Back</a> || <a
href="javascript:location.reload(true)">Refresh</a> <br>
<br>
<br>
<div align="center">
<h1><u>Agrotagger for Agrotags version-II &amp; Agrovoc<br>
</u></h1>

<br>
<div id="contentDiv" style="display: block;">
<form enctype="multipart/form-data" name="fileUploadForm"
action="resources/agrotags"
method="post" accept-charset="utf-8"><br>
<table style="text-align: left; width: 865px; height: 84px;"
border="1" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="vertical-align: top; width: 328px;"> Choose File To
Upload(<b>pdf,ppt,doc,odt,odp</b>):</td>
<td style="vertical-align: top; width: 293px;">&nbsp;<input
name="datafile" size="40" type="file"></td>
</tr>
<tr>
<td
style="vertical-align: middle; width: 328px; text-align: right; font-weight: bold;">ParamsXML:
<br>
</td>
<td style="vertical-align: top; width: 293px;"><textarea
name="paramsXML" rows="10" cols="60"></textarea></td>
</tr>
<tr>
<td style="vertical-align: top;"><br>
</td>
<td style="vertical-align: top;">This is the sample XML. Copy
and paste it above. <br>
Please change processing directives accordingly.<br>
<textarea readonly="readonly" name="paramsXMLSample" rows="10"
cols="60">&lt;params&gt;
&lt;!-- Processing directives are defined below outputType = xml/rdf,
application/json, text/plain noOftags = 10, 15, 20... vocabularyType =
agrotag or agrovoc
--&gt;
&lt;processingDirectives outputType="xml/rdf" noOfTags="10"
vocabularyType="agrotag"&gt;
&lt;/processingDirectives&gt;
&lt;/params&gt; </textarea> <br>
</td>
</tr>
</tbody>
</table>
<br>
&nbsp;<input id="submitButton" value="Generate Tags" type="submit"> <br>
<br>
</form>
</div>
</div>
</body>
</html>

